package com.bharatonjava.swift.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.bharatonjava.swift.domain.User;

public class UserRowMapper  implements RowMapper<User>{

	@Override
	public User mapRow(ResultSet rs, int rowNum) throws SQLException {
		User u = new User();
		u.setUserName(rs.getString("USERNAME"));
		u.setPassword(rs.getString("PASSWORD"));
		return u;	
	}

}
